package com.xingkeduo.pojo.query;

import com.xingkeduo.util.pojo.base.BaseQuery;
import com.xingkeduo.util.pojo.enums.YesNoEnum;

import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * @Description:
 * @Author:gaozifeng
 * @Date 2019/2/18 18:36
 **/
@Alias("ConsumerQO")
public class ConsumerQO extends BaseQuery<ConsumerQO> {

    private String login;

    private String name;

    private List<Long> ids;

    private String condition;

    private int fans;

    private int type;

    private String NameOrPhone;

    private YesNoEnum isDelete;
    
    
    public YesNoEnum getIsDelete() {
		return isDelete;
	}

	public ConsumerQO setIsDelete(YesNoEnum isDelete) {
		this.isDelete = isDelete;
		return this;
	}

	public int getType() {
        return type;
    }

    public ConsumerQO setType(int type) {
        this.type = type;
        return this;
    }

    public int getFans() {
        return fans;
    }

    public ConsumerQO setFans(int fans) {
        this.fans = fans;
        return this;
    }

    public String getLogin() {
        return login;
    }

    public ConsumerQO setLogin(String login) {
        this.login = login;
        return this;
    }

    public String getName() {
        return name;
    }

    public ConsumerQO setName(String name) {
        this.name = name;
        return this;
    }

    public List<Long> getIds() {
        return ids;
    }

    public ConsumerQO setIds(List<Long> ids) {
        this.ids = ids;
        return this;
    }

    public String getCondition() {
        return condition;
    }

    public ConsumerQO setCondition(String condition) {
        this.condition = condition;
        return this;
    }

    public String getNameOrPhone() {
        return NameOrPhone;
    }

    public ConsumerQO setNameOrPhone(String nameOrPhone) {
        NameOrPhone = nameOrPhone;
        return this;
    }

    public boolean isEmpty() {
        if (!isSuperEmpty() || condition != null || name != null || fans > 0 || type>0)
            return false;

        return true;
    }
}
